package com.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


@Controller
public class TestController {
    @ResponseBody
    @GetMapping(value = "test")
    String test() {
        return "hello sercurity"
                ;
    }

    @ResponseBody
    @GetMapping("test2")
    String test1() {
        return "test2改变"
                ;
    }

    @GetMapping("/mylogin")
    String mylogin() {
        return "mylogin";
    }
}
